package com.example.springkotlindemo.entity

import com.baomidou.mybatisplus.annotation.*
import java.time.LocalDateTime

/**
 * @author Xu Haidong
 * @date 2023/4/23 17:13
 */
@TableName("sys_user")
class DemoUser {

    @TableId(value = "user_id", type = IdType.AUTO)
    val userId: Long? = null

    val deptId: Long? = null

    val userName: String? = null

    val nickName: String? = null

    val userType: String? = null

    val email: String? = null

    val phonenumber: String? = null

    val sex: String? = null

    val avatar: String? = null

    val password: String? = null

    val status: String? = null

    val delFlag: String? = null

    val loginIp: String? = null

    val loginDate: LocalDateTime? = null

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    val createBy: String? = null

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    val createTime: LocalDateTime? = null

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    val updateBy: String? = null

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    val updateTime: LocalDateTime? = null

    val remark: String? = null
}